package com.zhieasy.common.service.impl;

import com.zhieasy.common.dao.UserDao;
import com.zhieasy.common.dao.impl.UserDaoImpl;
import com.zhieasy.common.service.UserService;
import com.zhieasy.xpuapi.entity.StudentPojo;

public class UserServiceImpl implements UserService {
    UserDao dao = new UserDaoImpl();

    @Override
    public int SaveUser(StudentPojo studentPojo) {
        if (dao.findUser(studentPojo.getStudentId()) == null){
            return dao.addUser(studentPojo);
        }
        return 1;
    }
}
